package com.itheima.stock.controller;


import com.itheima.stock.pojo.StockBusiness;
import com.itheima.stock.service.StockBusinessService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping(path = "/api/quot/stock/business")
@Slf4j
public class StockBusinessController {
    @Autowired
    private StockBusinessService stockBusinessService;
    @GetMapping("/all")
    public List<StockBusiness> businessAll(){
      log.info("查询股票主营业务------>");
      return  stockBusinessService.businessAll();
    }

}